
def nc_acm_sort_rule(data):
    return  sorted(data, key=lambda item: (-item["ac_number"], item["time"]))

def nc_ioi_sort_rule(data):
    for item in data:
        if item["score"] is None:
            item["score"] = 0  # 设置默认值为0，你可以根据实际情况修改
    return sorted(data, key=lambda item: (-item["score"]))
